import { BasicApi } from '../common/basic';
import { ApiClassDecorator, ApiMethodDecorator } from '../common/decorator';
import { CreateRole, ListRole, SearchRole, UpdateRole } from '../model/sys/roleModel';

@ApiClassDecorator('/sys/role')
export default class RoleApi extends BasicApi<CreateRole, UpdateRole, ListRole, SearchRole> {
  // path = '/sys/role';

  @ApiMethodDecorator('get', 'all')
  all() {
    return this.request('get', { url: ['all'] });
  }
}
